<template>
    <div>
        <p class="title">{{info.title}}</p>
        <hr>
        <div class="content">{{info.content}}</div>
    </div>
</template>
<script>
export default {
    data(){
        return{
            info: [],
            id: this.$route.params.id
        }
    },
    created(){
        this.getInfo()
    },
    methods: {
        getInfo(){
            this.$http.get("src/json/goodsdesc"+this.id+".json").then(result => {
                // if(result.body.status === 0){
                    this.info = result.body.message[0]
                // }
            })
        }
    }
}
</script>
<style lang="scss" scoped>
    p{
        // height: 20px;
        line-height: 20px;
        font-size: 14px;
        color: #409EFF
    }
</style>